#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

#include <QTimer>

const int ledlist[4] = {8, 9, 10, 11};

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_open_clicked();
    void on_pushButton_close_clicked();
    void lednext();

private:
    Ui::Widget *ui;
    int ledfd;
    int curled;
    QTimer *ledtimer;
};
#endif // WIDGET_H
